Claim 2: Count: Dendrites = 193 (92% Spiny)


In [7]:
import numpy
import ndio.remote.neurodata as nd
from datetime import datetime

oo = nd()

token = 'kasthuri2015_ramon_v1'
channel = 'neurons'
resolution = 3

In [21]:
import ndio.ramon as ramon

neuron_ids = oo.get_ramon_ids(token, channel, ramon_type=ramon.RAMONNeuron)

#for x in neuron_ids:
x = 10016
print x
print oo.get_ramon_metadata(token, channel, str(x))


10016
---------------------------------------------------------------------------
RemoteDataNotFoundError                   Traceback (most recent call last)
<ipython-input-21-2d37c1275ebe> in <module>()
      6 x = 10016
      7 print x
----> 8 print oo.get_ramon_metadata(token, channel, str(x))

/Users/graywr1/anaconda/lib/python2.7/site-packages/ndio/remote/neurodata.pyc in get_ramon_metadata(self, token, channel, anno_id)
    554                 # "id"
    555                 return self._get_single_ramon_metadata(token, channel,
--> 556                                                        anno_id.strip())
    557         elif type(anno_id) is list:
    558             # [id, id] or ['id', 'id']

/Users/graywr1/anaconda/lib/python2.7/site-packages/ndio/remote/neurodata.pyc in _get_single_ramon_metadata(self, token, channel, anno_id)
    570 
    571         if req.status_code is not 200:
--> 572             raise RemoteDataNotFoundError('No data for id {}.'.format(anno_id))
    573         else:
    574             return req.json()

RemoteDataNotFoundError: No data for id 10016.

In [ ]: